<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Foundation\Auth\User  as Authenticatable;
class User extends  Authenticatable
{
  /**
     * 不可被批量赋值的属性。
     *
     * @var array
     */
     protected $fillable = [];

   public function carts()
   {
      return $this->hasMany(Cart::class);
   }

   public function receivingAddress()
   {
      return $this->hasMany(ReceivingAddres::class);
   }

   public function informationReservations()
   {
      return $this->hasMany(InformationReservation::class);
   }
}
